package com.misty.reflect;

public class Man {
    public String name;
    private int sex;

    public Man() {
    }

    public Man(String name, int sex) {
        this.name = name;
        this.sex = sex;
    }

    public void say(){
        System.out.println("say hello!");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                '}';
    }
}
